<?php
include "includes/ui.php";
$title_header='ปรับระดับชั้นเรียน';
echo headerHTML("student",$title_header);
?> 

<div id="popup" class="modal hide fade" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true" style='margin-left:-390px;width:800px;'>

    <div class="modal-header">
        <button type="button" class="close" data-dismiss="modal" aria-hidden="true">×</button>
        <h3 id="myModalLabel"><i class="icon-cog"></i> ยืนยัน <?php echo $title_header;?></h3>
    </div>

    <form class="form-horizontal" style="margin-bottom: 0px!important;">

        <div class="modal-body" style="overflow-y:auto;min-height:400px;">
       
            <div class="well no-padding">
              
                <!-- Add News: WYSIWYG Edior -->
                <table class="table" id='table_detail' style='width:100% !important;'>
                    <thead>
                        <tr >
                        <th style='color:#333 !important;width:50px;'>#</th>
						<th style='color:#333 !important;width:0px !important;'></th>
						<th style='color:#333 !important;width:0px !important;'></th>
                        <th style='color:#333 !important;' class='left'>ชื่อ - นามสกุล</th>
						<th style='color:#333 !important;width:200px !important;' class="text-left">ระดับชั้น / ห้อง <span class="label label-info">เก่า</span> </th>
						<th style='color:#333 !important;width:200px !important;' class="text-left">ระดับชั้น / ห้อง <span class="label label-warning">ใหม่</span></th>
						<th style='color:#333 !important;width:0px !important;'></th>
						</tr>
                    </thead>
                    <tbody>

                    </tbody>
                </table>
                <!-- / Add News: WYSIWYG Edior -->

            </div> 
        </div>

        <div class="modal-footer">
            <button type='button' class="btn btn-primary hidden_control" id="btnConfirm">ยืนยัน</button>
            <button class="btn" data-dismiss="modal" id='btnCancel' aria-hidden="true">ยกเลิก</button>

        </div>
    </form>

</div> 
<!-- Live Stats -->
<div class="row-fluid">

    <!-- Pie: Box -->
    <div class="span12">

        <!--  : Top Bar -->
        <div class="top-bar">
            <h3><i class="icon-cog"></i> <?php echo $title_header;?></h3>
            	<div class='tmp' style='float:right'>
					<a href="#"  ><button class="btn"  style='width:80px;' id='btnPrintDraft' tooltip="Add">พิมพ์</button></a>
                    <a href="#popup" data-toggle="modal">
                        <button class="btn btn-info" rel="tooltip" title=""   data-original-title="บันทึกข้อมูล"  id='btnSave' tooltip="Add">บันทึก</button>
                    </a>
                </div>
        </div>
        <!-- /  : Top Bar -->



        <!-- Pie: Content -->
        <div class="well no-padding">
			<div class="span12">
				<div class="row-fluid">
					<div class='span12'>
					  <form class="form-horizontal" style="margin-bottom:0px;">
					<div class="control-group" >
								<label class="control-label" style='padding-top:5px;' for="inputName"><i class="icon-double-angle-right"></i>ปีการศึกษา</label>
								<div class="controls">
									<select class="no-margin span8" name='Year' id="cboYear_Search" style="width:100px !important;">
									 
									</select>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
									<span class="help-inline" style="font-weight:bold;">รหัสนักเรียน</span>
									<input type="text" id="txtCode" style='width:120px;' placeholder="">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
									 <span class="help-inline" style="font-weight:bold;">ชื่อ-นามสกุล</span>
									<input type="text" id="txtName" placeholder="">
								</div>
							
					 </div>
					 
					<div class="control-group">
						<label class="control-label" style='padding-top:5px;'><i class="icon-double-angle-right"></i>ระดับชั้น</label>
						<div class="controls">
							 
							<select class="no-margin span8" id='cboClass_Search' tabindex="1" style="width:150px !important;">
							 
							</select>
							<select class="no-margin span8" id='cboRoom_Search' tabindex="2" style="width:70px !important;">
									 
							</select>
							 
							 <button class="btn btn-inverse" type='button' id='btnSearch' style='margin-left:50px;height:30px;' rel="tooltip" title=""   data-original-title="ค้นหาข้อมูล"><i class="icon-search"></i></button> 
							 
						</div>
						
					</div>
					</form>
					</div>
					 
				</div>
			</div>
			<?php
			$m_main_me= new M_Menu();
			$val_year = $m_main_me->getCurrentYearTerm(); 
			?>
            <table class="data-table" id="resultData" >
                <thead style='border-top:1px solid #c2c2c2;border-bottom:1px solid #c2c2c2;'> 
                    <tr >
                        <th style='color:#333 !important;width:60px !important;'>#</th>
						<th style='color:#333 !important;width:0px !important;'></th>
						<th style='color:#333 !important;width:0px !important;'></th>
						<th style='color:#333 !important;width:100px !important;' class='center'>รหัส</th>
                        <th style='color:#333 !important;' class='left'>ชื่อ - นามสกุล</th>
						<th style='color:#333 !important;width:120px !important;' class='left'>ชื่อเล่น</th>
						<th style='color:#333 !important;width:150px;' class="center">ระดับชั้น / ห้อง <span class="label label-info"><?php echo $val_year['Year'];?> (เก่า)</span> </th>
						<th style='color:#333 !important;width:0px !important;'></th>
						<th style='color:#333 !important;width:0px !important;'></th>
						<th style='color:#333 !important;width:170px !important;' class="center">ระดับชั้น <span class="label label-warning"><?php echo $val_year['Year']+1;?> (ใหม่)</span></th>
                        <th style='color:#333 !important;width:100px !important;' class="center">ห้อง <span class="label label-warning">ใหม่</span></th>
                    </tr>
                </thead>
                <tbody>
                    
                </tbody>

            </table>

        </div>
        <!-- / Pie: Content -->

    </div>
    <!-- / Pie -->

</div>
<!-- / Live Stats -->

<?php
echo footerHTML();
?>

<!-- Javascript
================================================== -->
<!-- Placed at the end of the document so the pages load faster -->
<script src='js/jquery.hotkeys.js'></script>
<!--script src='js/fullcalendar.min.js'></script-->
<script src="js/jquery-ui-1.10.2.custom.min.js"></script>
<script src="js/jquery.pajinate.js"></script>
<!--script src="js/jquery.prism.min.js"></script-->
<script src="js/jquery.dataTables.min.js"></script>

<script src="js/jquery.flot.resize.js"></script>
<script src="js/bootstrap.min.js"></script>
<script src="js/bootstrap-wysiwyg.js"></script>
<!--script src="js/bootstrap-typeahead.js"></script-->
<script src="js/jquery.easing.min.js"></script>
<script src="js/jquery.chosen.min.js"></script>
<script src="js/avocado-custom.js"></script>
<script src="js/jqBootstrapValidation.js"></script>
<script src="js/myScript/js_student_adjust.js"></script>

</html>